home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 298 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  87 lines

  1. Path: news.doit.wisc.edu!news
  2. From: Tuan Truong <tqtruong@students.wisc.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: [HELP] Calling BTRIEVE function in C
  5. Date: 4 Jan 1996 04:40:02 GMT
  6. Organization: UW-Madison
  7. Message-ID: <4cfln2$1hsu@news.doit.wisc.edu>
  8. NNTP-Posting-Host: f183-053.net.wisc.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  13.  
  14. Hello,
  15.  
  16. I am trying to integrade a DOS application to a WINDOWS
  17. application(DYNAMICS). To do this, I needed to be able to open
  18. DYNAMICS' files, which are BTRIEVE files.However, I could not
  19. open the files.  Here is how I did it:
  20.  
  21. ***********MyCode.C********
  22.  
  23. #define BTI_DOS
  24. #include "btrapi.h"
  25.  
  26. int main()
  27. {  
  28.     :
  29.     :
  30.           status = btrv(0,......,..);  //open a btrieve file
  31.     :
  32.     :
  33.     return 0;
  34. }      
  35.  
  36. **********END**********
  37.  
  38. When I compile MyCode.C using the Turbo C++(ver.4.5), everything went OK. 
  39. However, when I selected RUN, I got an error message:
  40.  
  41. Error:  Undefine symbol BTRV(..).
  42.  
  43. Questions:
  44.  
  45. 1) Could it be the fact that I did not have the BTRIEVE (DOS version)
  46.    running before I tried to run MyCode.exe?
  47.  
  48. 2) Do I need the DOS version of BTRIEVE when I already got the WINDOWS
  49.    version?
  50.  
  51.  
  52. Please help!  If possible, please suggest me a way to work this out.
  53.  
  54. Thank you!
  55.  
  56. Tuan Truong 
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.